
***		Figure H.4
#delimit ;

/*******************************************************************************
		Generating Graph from Relevant Variables, Normalized Versiion
*******************************************************************************/
use "$datadir/banking/rbi_payment_statistics.dta", clear;
format value_mio_smoothed vol_mio_smoothed %12.0gc;


xtset rbibitemsequence month;
sort rbibitemsequence month;


************	Creating Locals to Keep Graphs in Sync
#delimit ;
local demonetization "681.5"; // Early November 2016
local start_period "2014m12";
local end_period "2019m11";
local volume "vol_mio_smoothed";
local value "value_mio_smoothed";
local version "smoothed";

local mwallet_code "30";
local pos_code "38";
local credit_code "25";
local debit_code "28";


************ 	M-wallet

* Trx Value	
*#delimit ;	
twoway 	line `value' month if rbibitemsequence==`mwallet_code'&month>tm(`start_period')&month<tm(`end_period'),
		xline(`demonetization') legend(off)
		title("Value of Transactions, Mobile Wallet*")
		xtitle("") ytitle("Total Transaction Value (INR Million)" " ")
		xmlab(679 "{it:Demonetization}", notick labsize(small)) xlab(,labsize(medsmall) labgap(2.5))
		graphregion(fc(white) margin(medium) lc(white)) scheme(lcolor2);	
		
graph export "$outputdir_fig/Figure_H_4.pdf", replace;

